export type listType = {
  text: string;
  value: string;
  checked: boolean;
};

export type QuestionCheckboxType = {
  title?: string;
  list?: listType[];
  isvertical?: boolean;
  disabled?: boolean;
  onchange?: (newProps: QuestionCheckboxType) => void;
};

export type QuestionCheckboxStatType = {
  name: string;
  count: number;
};

export const QuestionCheckboxDefaultValue: QuestionCheckboxType = {
  title: "多选标题",
  list: [
    { text: "选项1", value: "item1", checked: false },
    { text: "选项2", value: "item2", checked: false },
  ],
  isvertical: false,
};
